
export class Utils{
    static async  sleep(mills:number):Promise<void>{
        return new Promise((resolve => {
            setTimeout(resolve,mills)
        }))
    }
    static removeFromArrayAt<T>(index:number,array:Array<T>):T{
      const t = array[index];
      for (let i = index; i < array.length-1; i++) {
        array[i] = array[i+1]
      }
      array.pop()
      return t
  }
}

